package net.happy2v.louis.re.databases;

import android.net.Uri;
import android.provider.BaseColumns;

public class DatabaseContract {

	public static final String CONTENT_AUTHORITY = "net.happy2v.louis.re.provider";

	private static final Uri BASE_CONTENT_URI = Uri.parse("content://"
			+ CONTENT_AUTHORITY);

	public static final Uri AUTHORITY_URI = BASE_CONTENT_URI;

	public interface REBaseColumns extends BaseColumns {
		public static final String KEY_CNT = "cnt";
	}

	interface ContentsColumns {
		public static final String KEY_MAIN_PART = "main_part";
		public static final String KEY_LESSON = "lesson";
		public static final String KEY_TYPE = "type";
		public static final String KEY_CONTENT_ENG = "content_eng";
		public static final String KEY_CONTENT_KOR = "content_kor";
		public static final String KEY_MP3_URL = "mp3_url";
	}

	public static class ContentsTable implements ContentsColumns, BaseColumns {
		public static final Uri CONTENT_URI = BASE_CONTENT_URI.buildUpon()
				.appendPath(DatabaseHelper.Tables.TABLE_NAME_RE_DATA).build();
	}
}
